const app = require('./app')
const http = require('http');
const WS = require('./Socket')
/**
 * Create HTTP server.
 */
const server = http.createServer(app.callback());

/**
* Create Socket server.
*/

WS.init(server)

/**
* Listen on provided port, on all network interfaces.
*/

server.listen(9000, ()=>{
  console.log('http://localhost:9000');
});